import xlrd


def excel_file():
    loc = ("./python_excel.xls")
    wb = xlrd.open_workbook(loc)
    sheet = wb.sheet_by_index(0)
    print(sheet.cell_value(0, 0))
    print(sheet.nrows)
    print("========read the first column=============")
    for i in range(sheet.nrows):
        print(sheet.cell_value(i, 0))

    print("========read the first row=============")
    for i in range(sheet.ncols):
        print(sheet.cell_value(0, i))


excel_file()
